package org.rms.cayenne.access;

import java.util.Set;

import org.apache.cayenne.CayenneDataObject;
import org.apache.cayenne.DataObject;
import org.rms.model.access.Session;

public abstract class CayennePersistable extends CayenneDataObject {

    private static final long serialVersionUID = 1L;
    private Session session;

    public Session session() {
        if (this.session == null) {
            this.session = new CayenneSession(getObjectContext());
        }
        return this.session;
    }

}
